import pandas as pd
'''
这个简单学习一下保存
'''
mydata = dict()
mydata['id'] = [1, 2, 3]
mydata['name'] = ['黄剑', '大大', 'lala']

df = pd.DataFrame(mydata)
df = df.set_index('id')

'''
excel 保存
'''



df.to_excel(rf'D:\Desktop\mynewlearn\pandas.xlsx')
